package com.sczmgk.hotline.jpush;

import java.util.Observable;

/**
 * Created by Administrator on 2016/11/3.
 */

public  class MainHomeDataObserver extends Observable {
    private static MainHomeDataObserver instance;

    private MainHomeDataObserver(){

    }
    public static MainHomeDataObserver getInstance(){
        if(instance == null){
            instance = new MainHomeDataObserver();
        }
        return instance;
    }


    /**
     * 有新消息
     */
    public void hasNewMes(boolean changed) {
        setChanged();
        notifyObservers(changed);
    }
}
